package wechat.handler.bean.response;

import org.dom4j.DocumentException;

public class EventMessageBean extends MessageBaseBean {

	private String Event;
	private String EventKey;
	
	public EventMessageBean(String str) throws DocumentException {
		super(str);
	}
	
	public EventMessageBean(){
		
	}

	public String getEvent() {
		return Event;
	}

	public void setEvent(String event) {
		Event = event;
	}

	public String getEventKey() {
		return EventKey;
	}

	public void setEventKey(String eventKey) {
		EventKey = eventKey;
	}
	
	protected static final String Xpath_Event = "/xml/Event";
	protected static final String Xpath_EventKey = "/xml/EventKey";
	
	public void transform() throws Exception {
		super.transform();
		this.setEvent(getNodeText(Xpath_Event));
		this.setEventKey(getNodeText(Xpath_EventKey));
	}

//	protected String buildXml() throws Exception {
//		super.buildXml();
//		addNode("Event", getToUserName());
//		addNode("EventKey", getToUserName());
//		return parent.asXML();
//	}
}
